﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="setting.aspx.cs" Inherits="DreamCMS.Web.admin.setting" ValidateRequest="false" %>

<%@ Import Namespace="DreamCMS.WebCore.Common" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>网站配置</title>
    <link href="css/style.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="framebox">
            <div class="server">
                <div class="settingPage">
                    <h4 id="bases">基本设置</h4>
                    <table width="100%" class="settingTable">
                        <tr class="row">
                            <td style="width: 20%;">
                                <label for="<%=txtSiteName.ClientID %>">网站标题:</label></td>
                            <td>
                                <asp:TextBox ID="txtSiteName" Width="70%" runat="server" CssClass="text"></asp:TextBox></td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtSiteDescription.ClientID %>">网站描述:</label></td>
                            <td>
                                <asp:TextBox ID="txtSiteDescription" Width="70%" runat="server" CssClass="text"></asp:TextBox></td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtMetaKeywords.ClientID %>">Meta Keywords:</label></td>
                            <td>
                                <asp:TextBox ID="txtMetaKeywords" Width="70%" runat="server" CssClass="text"></asp:TextBox>
                                <span class="m_desc">首页关键字,用逗号","隔开</span></td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtMetaDescription.ClientID %>">Meta Description:</label></td>
                            <td>
                                <asp:TextBox ID="txtMetaDescription" Width="70%" runat="server" CssClass="text"></asp:TextBox>
                                <span class="m_desc">首页描述</span></td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=ddlTotalType.ClientID %>">统计类型:</label></td>
                            <td>
                                <asp:DropDownList ID="ddlTotalType" runat="server" Width="160">
                                    <asp:ListItem Value="1" Text="刷新一次增加一次"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="一天只增加一次"></asp:ListItem>
                                </asp:DropDownList>
                                <span class="m_desc">统计包括文章浏览数,网站浏览数</span>
                            </td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=ddlRewriteExtension.ClientID %>">页面扩展名:</label></td>
                            <td>
                                <asp:DropDownList ID="ddlRewriteExtension" runat="server" Width="160">
                                    <asp:ListItem Value=".aspx" Text=".aspx"></asp:ListItem>
                                    <asp:ListItem Value=".html" Text=".html"></asp:ListItem>
                                    <asp:ListItem Value="" Text="无扩展名(文件夹形式)"></asp:ListItem>
                                </asp:DropDownList>
                                <span class="m_desc">非.aspx后缀需要修改IIS站点映射设置</span>
                            </td>
                        </tr>
                        <tr class="rowend">
                            <td></td>
                            <td>
                                <asp:CheckBox ID="chkSiteStatus" runat="server" Text="启用网站" Checked="true" />
                                <asp:CheckBox ID="chkEnableVerifyCode" runat="server" Checked="true" Text="启用验证码(评论)" />
                            </td>
                        </tr>

                    </table>

                    <h4 id="comments">评论设置</h4>
                    <table width="100%" class="settingTable">
                        <tr class="row">
                            <td style="width: 20%;">
                                <label for="<%=chkCommentStatus.ClientID %>">状态:</label></td>
                            <td>
                                <asp:CheckBox ID="chkCommentStatus" runat="server" Text="启用" Checked="true" />
                                <span class="m_desc">这是总开头,如果不启用,所以文章均不能评论</span></td>
                        </tr>

                        <tr class="row">
                            <td>
                                <label for="<%=ddlCommentApproved.ClientID %>">审核类型:</label></td>
                            <td>
                                <asp:DropDownList ID="ddlCommentApproved" runat="server" Width="160">
                                    <asp:ListItem Value="0" Text="无需审核"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="人工审核"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="自动审核(配合垃圾词语)"></asp:ListItem>
                                    
                                </asp:DropDownList>

                            </td>
                        </tr>
                        <tr class="rowend">
                            <td>
                                <label for="<%=txtCommentSpamwords.ClientID %>">垃圾词语:</label></td>
                            <td>
                                <asp:TextBox ID="txtCommentSpamwords" runat="server" TextMode="MultiLine" Width="80%" Height="100"></asp:TextBox>
                                <div class="m_desc">多个词语以","隔开, 当审核类型为"自动审核"时,评论包括这些关键字,则该评论转为待审核,否则审核通过</div>
                            </td>
                        </tr>

                    </table>
                    <h4 id="displays">显示设置</h4>
                    <table width="100%" class="settingTable">
                        <tr class="row">
                            <td style="width: 20%;">
                                <label for="<%=ddlPostShowType.ClientID %>">文章列表显示:</label></td>
                            <td>
                                <asp:DropDownList ID="ddlPostShowType" runat="server" Width="160">
                                    <asp:ListItem Value="1" Text="仅标题"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="摘要"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="正文前200字"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="正文"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtPageSizePostCount.ClientID %>">每页文章数:</label></td>
                            <td>

                                <asp:TextBox ID="txtPageSizePostCount" runat="server" CssClass="text"></asp:TextBox>

                                <span class="m_desc">指文章列表每页条数</span>
                            </td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtPageSizeCommentCount.ClientID %>">每页评论数:</label></td>
                            <td>

                                <asp:TextBox ID="txtPageSizeCommentCount" runat="server" CssClass="text"></asp:TextBox>

                                <span class="m_desc">指正文下方评论每页条数</span>
                            </td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtPostRelatedCount.ClientID %>">相关文章数:</label></td>
                            <td>
                                <asp:TextBox ID="txtPostRelatedCount" runat="server" CssClass="text"></asp:TextBox>
                                <span class="m_desc">指正文下方相关文章条数</span>
                            </td>
                        </tr>
                        <tr class="row">
                            <td>
                                <label for="<%=txtSidebarPostCount.ClientID %>">侧栏文章数:</label></td>
                            <td>

                                <asp:TextBox ID="txtSidebarPostCount" runat="server" CssClass="text"></asp:TextBox>

                                <span class="m_desc">指侧栏显示的文章条数</span>
                            </td>
                        </tr>

                        <tr class="row">
                            <td>
                                <label for="<%=txtSidebarCommentCount.ClientID %>">侧栏评论数:</label></td>
                            <td>

                                <asp:TextBox ID="txtSidebarCommentCount" runat="server" CssClass="text"></asp:TextBox>

                                <span class="m_desc">指侧栏显示的评论条数</span>
                            </td>
                        </tr>
                        <tr class="rowend">
                            <td>
                                <label for="<%=txtSidebarTagCount.ClientID %>">侧栏标签数:</label></td>
                            <td>

                                <asp:TextBox ID="txtSidebarTagCount" runat="server" CssClass="text"></asp:TextBox>

                                <span class="m_desc">指侧栏显示的标签个数</span>
                            </td>
                        </tr>

                    </table>
                   
                    <h4 id="footers">页脚设置<span class="small gray normal">(支持Html,网站统计,备案号等可放于此)</span></h4>
                    <table width="100%" class="settingTable">
                        <tr class="row">
                            <td style="width: 20%;">
                                <label class="" for="<%=txtFooterHtml.ClientID %>">页脚内容:</label></td>
                            <td>
                                <asp:TextBox ID="txtFooterHtml" Width="80%" Height="100px" TextMode="multiLine" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr class="rowend">
                            <td>&nbsp;</td>
                            <td>
                                <asp:Button ID="btnEdit" CssClass="CommonBtn" runat="server" Text="保存" OnClick="btnEdit_Click" /></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
